package v1.com.autoresource.config;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @ProjectName: learning
 * @Package: com.autoresource.config
 * @ClassName: DynamicDataResource
 * @Description:
 * @Date: 2021/11/1 8:00 下午
 * @Version: 1.0
 */
public class DynamicDataSource extends AbstractRoutingDataSource {

    @Override
    protected Object determineCurrentLookupKey() {
        return DynamicDataResourceHolder.determineCurrentLookupKey();
    }
}
